import { BasicColumn, FormSchema } from "/@/components/Table";
import {JVxeTypes,JVxeColumn} from '/@/components/jeecg/JVxeTable/types'

//列表数据
export const columns: BasicColumn[] = [
  {
    title: "企业名称",
    align: "center",
    dataIndex: "name"
  },
  {
    title: "企业法人",
    align: "center",
    dataIndex: "legal",
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: "企业电话",
    align: "center",
    dataIndex: "phone",
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: "银行账号",
    align: "center",
    dataIndex: "bankAccount",
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: "开户行",
    align: "center",
    dataIndex: "bankName",
    customRender:({text}) =>{
      return !text ? "-" : text;
    },
  },
  {
    title: "创建人",
    align: "center",
    dataIndex: "createBy"
  },
  {
    title: "创建时间",
    align: "center",
    sorter: true,
    dataIndex: "createTime"
  },
  {
    title: "状态",
    align: "center",
    sorter: true,
    dataIndex: "status",
    filters: [
      { text: "审核中", value: "0" },
      { text: "通过", value: "1" },
      { text: "拒绝", value: "2" },
      { text: "禁用", value: "3" },
    ],
    filterMultiple: false,
    slots: { customRender: "statusSlot" }
  }
];
//查询数据
export const searchFormSchema: FormSchema[] = [
  ];

//表单数据
export const formSchema: FormSchema[] = [

];
//子表单数据
//子表表格配置
export const caishuiBusinessBankColumns: JVxeColumn[] = [
  {
    title: '子账户ID',
    key: 'subAccountId',
  },
  {
    title: '户名',
    key: 'name',
  },
  {
    title: '账户',
    key: 'account',
  },
  {
    title: '服务公司',
    key: 'serviceCompanyName',
  },
  {
    title: '开户行',
    key: 'bankName',
  },
  {
    title: '税率',
    key: 'taxRate',
  },
  {
    title: '余额',
    key: 'balance',
  },
]
export const caishuiBusinessUserColumns: JVxeColumn[] = [
  {
    title: '手机号',
    key: 'phone',
    type: JVxeTypes.inputNumber,
    width:"200px",
    placeholder: '请输入${title}',
    defaultValue:'',
    validateRules: [
      { required: true, message: '${title}不能为空' },
    ],
  },
  {
    title: '姓名',
    key: 'realname',
    type: JVxeTypes.input,
    width:"200px",
    placeholder: '请输入${title}',
    defaultValue:'',
    validateRules: [
      { required: true, message: '${title}不能为空' },
    ],
  },
  {
    title: '最后登录时间',
    key: 'lastLoginDate',
    type: JVxeTypes.input,
    width:"200px",
    placeholder: '请输入${title}',
    defaultValue:'',
  },
  {
    title: '最后登录IP',
    key: 'lastLoginIp',
    type: JVxeTypes.input,
    width:"200px",
    placeholder: '请输入${title}',
    defaultValue:'',
  },
  {
    title: '登录成功次数',
    key: 'loginSuccesNum',
    type: JVxeTypes.input,
    width:"200px",
    placeholder: '请输入${title}',
    defaultValue:'',
  },
]
